import { http } from '@/utils/http'

/** 查询操作日志列表 */
export function listOperlog(params?: object) {
  return http.request<HttpPaginationResponse<Array<any>>>('get', '/system/operlog/list', {
    params,
  })
}

/** 删除操作日志 */
export function delOperlog(operId: number) {
  return http.request<HttpResponse<Object>>('delete', '/system/operlog/' + operId)
}

/** 清空操作日志 */
export function cleanOperlog() {
  return http.request<HttpResponse<Object>>('delete', '/system/operlog/clean')
}
